<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Priithon.plt.interface</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Priithon-module.html">Package&nbsp;Priithon</a> ::
        <a href="Priithon.plt-module.html">Package&nbsp;plt</a> ::
        Module&nbsp;interface
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Priithon.plt.interface-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Priithon.plt.interface-module.html">Module Priithon.plt.interface</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module Priithon.plt.seb=Priithon.plt.seb-module.html"><a title="Priithon.plt.seb" class="py-name" href="#" onclick="return doclink('link-0', 'seb', 'link-0');">seb</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">numpy</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Module Priithon.plt.wxplt=Priithon.plt.wxplt-module.html"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-1', 'wxplt', 'link-1');">wxplt</a></tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Module Priithon.plt.plot_objects=Priithon.plt.plot_objects-module.html"><a title="Priithon.plt.plot_objects" class="py-name" href="#" onclick="return doclink('link-2', 'plot_objects', 'link-2');">plot_objects</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-name">plot_module</tt> <tt class="py-op">=</tt> <tt id="link-3" class="py-name"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-3', 'wxplt', 'link-1');">wxplt</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment">#seb plot_class = gui_thread.register(plot_module.plot_frame)</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-name">plot_class</tt> <tt class="py-op">=</tt> <tt class="py-name">plot_module</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Class Priithon.plt.wxplt.plot_frame=Priithon.plt.wxplt.plot_frame-class.html"><a title="Priithon.plt.wxplt.plot_frame" class="py-name" href="#" onclick="return doclink('link-4', 'plot_frame', 'link-4');">plot_frame</a></tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable Priithon.plt.interface._figure=Priithon.plt.interface-module.html#_figure"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-5', '_figure', 'link-5');">_figure</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt id="link-6" class="py-name" targets="Variable Priithon.plt.interface._active=Priithon.plt.interface-module.html#_active"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-6', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"> </tt>
<a name="figure"></a><div id="figure-def"><a name="L17"></a><tt class="py-lineno"> 17</tt> <a class="py-toggle" href="#" id="figure-toggle" onclick="return toggle('figure');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#figure">figure</a><tt class="py-op">(</tt><tt class="py-param">which_one</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment"># 20091112: seb added parent option</tt> </tt>
</div><a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt id="link-7" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-7', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">;</tt> <tt class="py-keyword">global</tt> <tt id="link-8" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-8', '_active', 'link-6');">_active</a></tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">which_one</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line">        <tt id="link-9" class="py-name" targets="Function Priithon.plt.interface.title()=Priithon.plt.interface-module.html#title,Method Priithon.plt.wxplt.plot_frame.title()=Priithon.plt.wxplt.plot_frame-class.html#title"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-9', 'title', 'link-9');">title</a></tt> <tt class="py-op">=</tt><tt class="py-string">'Figure %d'</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-10" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-10', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt id="link-11" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-11', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">plot_class</tt><tt class="py-op">(</tt><tt id="link-12" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-12', 'title', 'link-9');">title</a></tt><tt class="py-op">=</tt><tt id="link-13" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-13', 'title', 'link-9');">title</a></tt><tt class="py-op">,</tt> <tt class="py-name">parent</tt><tt class="py-op">=</tt><tt class="py-name">parent</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">        <tt id="link-14" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-14', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-15', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-op">(</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">which_one</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-op">(</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">which_one</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-number">1.</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt>     </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">            <tt id="link-16" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-16', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt id="link-17" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-17', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">[</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">which_one</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">            <tt id="link-18" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-18', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Raise</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">parent</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">                <tt id="link-19" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-19', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Reparent</tt><tt class="py-op">(</tt> <tt class="py-name">parent</tt> <tt class="py-op">)</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">IndexError</tt><tt class="py-op">:</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">            <tt id="link-20" class="py-name" targets="Variable Priithon.wxPyPlot.msg=Priithon.wxPyPlot-module.html#msg"><a title="Priithon.wxPyPlot.msg" class="py-name" href="#" onclick="return doclink('link-20', 'msg', 'link-20');">msg</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"There are currently only %d active figures"</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-21" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-21', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">)</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">IndexError</tt><tt class="py-op">,</tt> <tt id="link-22" class="py-name"><a title="Priithon.wxPyPlot.msg" class="py-name" href="#" onclick="return doclink('link-22', 'msg', 'link-20');">msg</a></tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">which_one</tt> <tt class="py-keyword">in</tt> <tt id="link-23" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-23', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">:</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt id="link-24" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-24', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">which_one</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt id="link-25" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-25', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Raise</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">parent</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">            <tt id="link-26" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-26', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Reparent</tt><tt class="py-op">(</tt> <tt class="py-name">parent</tt> <tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">which_one</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Variable Priithon.plt.wxplt.plot_canvas.__type_hack__=Priithon.plt.wxplt.plot_canvas-class.html#__type_hack__"><a title="Priithon.plt.wxplt.plot_canvas.__type_hack__" class="py-name" href="#" onclick="return doclink('link-27', '__type_hack__', 'link-27');">__type_hack__</a></tt> <tt class="py-op">==</tt> <tt class="py-string">"plot_canvas"</tt><tt class="py-op">:</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">                <tt id="link-28" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-28', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">which_one</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">                <tt id="link-29" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-29', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-30" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-30', '_active', 'link-6');">_active</a></tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">                <tt id="link-31" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-31', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Raise</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">parent</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">                    <tt id="link-32" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-32', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Reparent</tt><tt class="py-op">(</tt> <tt class="py-name">parent</tt> <tt class="py-op">)</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-string">"The specified figure or index is not not known"</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">AttributeError</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">    <tt class="py-name">fig</tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name" targets="Function Priithon.plt.interface.current()=Priithon.plt.interface-module.html#current"><a title="Priithon.plt.interface.current" class="py-name" href="#" onclick="return doclink('link-33', 'current', 'link-33');">current</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">fig</tt> </tt>
</div><a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">     </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">     </tt>
<a name="validate_active"></a><div id="validate_active-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="validate_active-toggle" onclick="return toggle('validate_active');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#validate_active">validate_active</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="validate_active-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="validate_active-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt id="link-34" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-34', '_active', 'link-6');">_active</a></tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-35" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-35', '_active', 'link-6');">_active</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt id="link-36" class="py-name" targets="Function Priithon.plt.interface.figure()=Priithon.plt.interface-module.html#figure"><a title="Priithon.plt.interface.figure" class="py-name" href="#" onclick="return doclink('link-36', 'figure', 'link-36');">figure</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-comment"># seb-20050723-noGui_Thread if not _active.proxy_object_alive:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">hasattr</tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-37', '_active', 'link-6');">_active</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Show'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment"># is _active wxFrame not deleted ?</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">            <tt id="link-38" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-38', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">            <tt id="link-39" class="py-name"><a title="Priithon.plt.interface.figure" class="py-name" href="#" onclick="return doclink('link-39', 'figure', 'link-36');">figure</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt id="link-40" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-40', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>  <tt class="py-comment"># seb-20040824</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt id="link-41" class="py-name"><a title="Priithon.plt.interface.figure" class="py-name" href="#" onclick="return doclink('link-41', 'figure', 'link-36');">figure</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>        <tt class="py-comment"># seb-20040824</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">     </tt>
<a name="current"></a><div id="current-def"><a name="L66"></a><tt class="py-lineno"> 66</tt> <a class="py-toggle" href="#" id="current-toggle" onclick="return toggle('current');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#current">current</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="current-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="current-expanded"><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-42" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-42', '_active', 'link-6');">_active</a></tt> </tt>
</div><a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line"> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt class="py-comment">#seb   20080901 - this ( redraw() )appears to be broken: </tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#      ..../plt/wxplt.py", line 806, in __getattr__</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#      AttributeError: 'plot_canvas' object has no attribute 'redraw'</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#def redraw():</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#    validate_active()</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#    _active.redraw()</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="close"></a><div id="close-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="close-toggle" onclick="return toggle('close');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">which_one</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="close-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="close-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">    <tt class="py-keyword">global</tt> <tt id="link-43" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-43', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">;</tt> <tt class="py-keyword">global</tt> <tt id="link-44" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-44', '_active', 'link-6');">_active</a></tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">which_one</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">            <tt id="link-45" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-45', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">Close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">            <tt id="link-46" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-46', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">.</tt><tt class="py-name">remove</tt><tt class="py-op">(</tt><tt id="link-47" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-47', '_active', 'link-6');">_active</a></tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">ValueError</tt><tt class="py-op">:</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">             </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt>  </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">            <tt class="py-comment"># should make sure the new plot window really exist</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt id="link-48" class="py-name" targets="Function Priithon.plt.interface.set_new_active()=Priithon.plt.interface-module.html#set_new_active"><a title="Priithon.plt.interface.set_new_active" class="py-name" href="#" onclick="return doclink('link-48', 'set_new_active', 'link-48');">set_new_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">IndexError</tt><tt class="py-op">:</tt> <tt id="link-49" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-49', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">which_one</tt> <tt class="py-op">==</tt> <tt class="py-string">'all'</tt><tt class="py-op">:</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">fig</tt> <tt class="py-keyword">in</tt> <tt id="link-50" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-50', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">:</tt> <tt class="py-name">fig</tt><tt class="py-op">.</tt><tt class="py-name">Close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt id="link-51" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-51', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">NotImplementedError</tt><tt class="py-op">,</tt> <tt class="py-string">"currently close only works with"</tt>\ </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">                                   <tt class="py-string">" _active window or 'all'"</tt> </tt>
</div><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-comment">#try: </tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#   _figure.remove(which_one)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#   which_one.close()</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#except ValueError:</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#   which_one.close() </tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="set_new_active"></a><div id="set_new_active-def"><a name="L101"></a><tt class="py-lineno">101</tt> <a class="py-toggle" href="#" id="set_new_active-toggle" onclick="return toggle('set_new_active');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#set_new_active">set_new_active</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="set_new_active-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="set_new_active-expanded"><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt class="py-comment"># should validate new active here</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt id="link-52" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-52', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt id="link-53" class="py-name"><a title="Priithon.plt.interface._figure" class="py-name" href="#" onclick="return doclink('link-53', '_figure', 'link-5');">_figure</a></tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt class="py-name">IndexError</tt><tt class="py-op">:</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt id="link-54" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-54', '_active', 'link-6');">_active</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt>     </tt>
</div><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">         </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"> </tt>
<a name="_auto_all"></a><div id="_auto_all-def"><a name="L109"></a><tt class="py-lineno">109</tt> <a class="py-toggle" href="#" id="_auto_all-toggle" onclick="return toggle('_auto_all');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#_auto_all">_auto_all</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_auto_all-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_auto_all-expanded"><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">    <tt id="link-55" class="py-name" targets="Function Priithon.plt.interface.validate_active()=Priithon.plt.interface-module.html#validate_active"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-55', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">    <tt id="link-56" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-56', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">    <tt id="link-57" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-57', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">    <tt id="link-58" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-58', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">    <tt id="link-59" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-59', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt>     </tt>
</div><a name="autoscale"></a><div id="autoscale-def"><a name="L115"></a><tt class="py-lineno">115</tt> <a class="py-toggle" href="#" id="autoscale-toggle" onclick="return toggle('autoscale');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#autoscale">autoscale</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="autoscale-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="autoscale-expanded"><a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">    <tt id="link-60" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-60', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">    <tt id="link-61" class="py-name" targets="Function Priithon.plt.interface._auto_all()=Priithon.plt.interface-module.html#_auto_all"><a title="Priithon.plt.interface._auto_all" class="py-name" href="#" onclick="return doclink('link-61', '_auto_all', 'link-61');">_auto_all</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">    <tt id="link-62" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-62', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.update()=Priithon.plt.wxplt.plot_canvas-class.html#update,Method Priithon.plt.wxplt.plot_frame.update()=Priithon.plt.wxplt.plot_frame-class.html#update"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-63', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"> </tt>
<a name="_an_axis"></a><div id="_an_axis-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="_an_axis-toggle" onclick="return toggle('_an_axis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#_an_axis">_an_axis</a><tt class="py-op">(</tt><tt class="py-param">ax</tt><tt class="py-op">,</tt><tt class="py-param">setting</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_an_axis-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_an_axis-expanded"><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">    <tt class="py-name">ticks</tt> <tt class="py-op">=</tt> <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">    <tt class="py-name">interval</tt> <tt class="py-op">=</tt> <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt> <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">setting</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'normal'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'freeze'</tt><tt class="py-op">:</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">        <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">        <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">interval</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'tight'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'fit'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">setting</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">            <tt class="py-name">ax</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
</div><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">             </tt>
<a name="xaxis"></a><div id="xaxis-def"><a name="L136"></a><tt class="py-lineno">136</tt> <a class="py-toggle" href="#" id="xaxis-toggle" onclick="return toggle('xaxis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#xaxis">xaxis</a><tt class="py-op">(</tt><tt class="py-param">rng</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="xaxis-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="xaxis-expanded"><a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">    <tt id="link-64" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-64', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">    <tt id="link-65" class="py-name" targets="Function Priithon.plt.interface._an_axis()=Priithon.plt.interface-module.html#_an_axis"><a title="Priithon.plt.interface._an_axis" class="py-name" href="#" onclick="return doclink('link-65', '_an_axis', 'link-65');">_an_axis</a></tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-66', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">,</tt><tt class="py-name">rng</tt><tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">    <tt id="link-67" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-67', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-68', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">     </tt>
<a name="yaxis"></a><div id="yaxis-def"><a name="L141"></a><tt class="py-lineno">141</tt> <a class="py-toggle" href="#" id="yaxis-toggle" onclick="return toggle('yaxis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#yaxis">yaxis</a><tt class="py-op">(</tt><tt class="py-param">rng</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="yaxis-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="yaxis-expanded"><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">    <tt id="link-69" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-69', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">    <tt id="link-70" class="py-name"><a title="Priithon.plt.interface._an_axis" class="py-name" href="#" onclick="return doclink('link-70', '_an_axis', 'link-65');">_an_axis</a></tt><tt class="py-op">(</tt><tt id="link-71" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-71', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">,</tt><tt class="py-name">rng</tt><tt class="py-op">)</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">    <tt id="link-72" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-72', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-73', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"> </tt>
<a name="title"></a><div id="title-def"><a name="L146"></a><tt class="py-lineno">146</tt> <a class="py-toggle" href="#" id="title-toggle" onclick="return toggle('title');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#title">title</a><tt class="py-op">(</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="title-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="title-expanded"><a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">    <tt id="link-74" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-74', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt class="py-comment">#seb _active.title.text = name</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#seb _active.update()</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-75" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-75', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="Priithon.plt.interface.title
Priithon.plt.wxplt.plot_frame.title" class="py-name" href="#" onclick="return doclink('link-76', 'title', 'link-9');">title</a></tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt id="link-77" class="py-name" targets="Variable Priithon.py.crust.Crust.name=Priithon.py.crust.Crust-class.html#name,Variable Priithon.py.crust.CrustFrame.name=Priithon.py.crust.CrustFrame-class.html#name,Variable Priithon.py.filling.Filling.name=Priithon.py.filling.Filling-class.html#name,Variable Priithon.py.filling.FillingFrame.name=Priithon.py.filling.FillingFrame-class.html#name,Variable Priithon.py.filling.FillingText.name=Priithon.py.filling.FillingText-class.html#name,Variable Priithon.py.filling.FillingTree.name=Priithon.py.filling.FillingTree-class.html#name,Variable Priithon.py.shell.Shell.name=Priithon.py.shell.Shell-class.html#name,Variable Priithon.py.shell.ShellFacade.name=Priithon.py.shell.ShellFacade-class.html#name,Variable Priithon.py.shell.ShellFrame.name=Priithon.py.shell.ShellFrame-class.html#name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-77', 'name', 'link-77');">name</a></tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">    <tt id="link-78" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-78', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-79', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"> </tt>
<a name="xtitle"></a><div id="xtitle-def"><a name="L153"></a><tt class="py-lineno">153</tt> <a class="py-toggle" href="#" id="xtitle-toggle" onclick="return toggle('xtitle');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#xtitle">xtitle</a><tt class="py-op">(</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="xtitle-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="xtitle-expanded"><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">    <tt id="link-80" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-80', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">    <tt id="link-81" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-81', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_title</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt id="link-82" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-82', 'name', 'link-77');">name</a></tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">    <tt id="link-83" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-83', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-84', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"> </tt>
<a name="ytitle"></a><div id="ytitle-def"><a name="L158"></a><tt class="py-lineno">158</tt> <a class="py-toggle" href="#" id="ytitle-toggle" onclick="return toggle('ytitle');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#ytitle">ytitle</a><tt class="py-op">(</tt><tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ytitle-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ytitle-expanded"><a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">    <tt id="link-85" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-85', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">    <tt id="link-86" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-86', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_title</tt><tt class="py-op">.</tt><tt class="py-name">text</tt> <tt class="py-op">=</tt> <tt id="link-87" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-87', 'name', 'link-77');">name</a></tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">    <tt id="link-88" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-88', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-89" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-89', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line"> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"><tt id="link-90" class="py-name" targets="Variable Priithon.plt.interface.on=Priithon.plt.interface-module.html#on"><a title="Priithon.plt.interface.on" class="py-name" href="#" onclick="return doclink('link-90', 'on', 'link-90');">on</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'on'</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line"><tt id="link-91" class="py-name" targets="Variable Priithon.plt.interface.off=Priithon.plt.interface-module.html#off"><a title="Priithon.plt.interface.off" class="py-name" href="#" onclick="return doclink('link-91', 'off', 'link-91');">off</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'off'</tt> </tt>
<a name="grid"></a><div id="grid-def"><a name="L165"></a><tt class="py-lineno">165</tt> <a class="py-toggle" href="#" id="grid-toggle" onclick="return toggle('grid');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#grid">grid</a><tt class="py-op">(</tt><tt class="py-param">state</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="grid-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="grid-expanded"><a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">    <tt id="link-92" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-92', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">state</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-93" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-93', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'yes'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">            <tt id="link-94" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-94', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'off'</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">            <tt id="link-95" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-95', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'off'</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">            <tt id="link-96" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-96', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'on'</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">            <tt id="link-97" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-97', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'on'</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">state</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'off'</tt><tt class="py-op">,</tt><tt class="py-string">'yes'</tt><tt class="py-op">,</tt><tt class="py-string">'no'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">        <tt id="link-98" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-98', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-op">=</tt> <tt class="py-name">state</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">        <tt id="link-99" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-99', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">grid_visible</tt> <tt class="py-op">=</tt> <tt class="py-name">state</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-string">'grid argument can be "on","off",'</tt>\ </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">                          <tt class="py-string">'"yes","no". Not '</tt> <tt class="py-op">+</tt> <tt class="py-name">state</tt>         </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">    <tt id="link-100" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-100', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-101" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-101', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line"> </tt>
<a name="hold"></a><div id="hold-def"><a name="L182"></a><tt class="py-lineno">182</tt> <a class="py-toggle" href="#" id="hold-toggle" onclick="return toggle('hold');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#hold">hold</a><tt class="py-op">(</tt><tt class="py-param">state</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="hold-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="hold-expanded"><a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">    <tt id="link-102" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-102', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">state</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'off'</tt><tt class="py-op">,</tt><tt class="py-string">'yes'</tt><tt class="py-op">,</tt><tt class="py-string">'no'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">        <tt id="link-103" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-103', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-104" class="py-name" targets="Function Priithon.plt.interface.hold()=Priithon.plt.interface-module.html#hold"><a title="Priithon.plt.interface.hold" class="py-name" href="#" onclick="return doclink('link-104', 'hold', 'link-104');">hold</a></tt> <tt class="py-op">=</tt> <tt class="py-name">state</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-string">'holds argument can be "on","off",'</tt>\ </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">                          <tt class="py-string">'"yes","no". Not '</tt> <tt class="py-op">+</tt> <tt class="py-name">state</tt>         </tt>
</div><a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">     </tt>
<a name="axis"></a><div id="axis-def"><a name="L190"></a><tt class="py-lineno">190</tt> <a class="py-toggle" href="#" id="axis-toggle" onclick="return toggle('axis');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#axis">axis</a><tt class="py-op">(</tt><tt class="py-param">setting</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="axis-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="axis-expanded"><a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">    <tt id="link-105" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-105', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">    <tt class="py-name">x_ticks</tt> <tt class="py-op">=</tt> <tt id="link-106" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-106', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">    <tt class="py-comment">#CHECK print type(x_ticks), dir(x_ticks)    </tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">x_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt> <tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">    <tt class="py-name">y_ticks</tt> <tt class="py-op">=</tt> <tt id="link-107" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-107', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">ticks</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">    <tt class="py-name">y_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt> <tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">    <tt class="py-name">axes</tt> <tt class="py-op">=</tt> <tt class="py-name">array</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">x_ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">y_ticks</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">float64</tt><tt class="py-op">)</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">    <tt class="py-comment"># had to use client below cause of __setattr__ troubles in plot_frame</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'normal'</tt><tt class="py-op">:</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">        <tt id="link-108" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-108', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt> <tt class="py-op">=</tt> <tt class="py-name">setting</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt id="link-109" class="py-name"><a title="Priithon.plt.interface._auto_all" class="py-name" href="#" onclick="return doclink('link-109', '_auto_all', 'link-61');">_auto_all</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">]</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt>     </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line"> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'equal'</tt><tt class="py-op">:</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">        <tt id="link-110" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-110', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt class="py-name">aspect_ratio</tt> <tt class="py-op">=</tt> <tt class="py-name">setting</tt>     </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-op">==</tt> <tt class="py-string">'freeze'</tt><tt class="py-op">:</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">        <tt id="link-111" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-111', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">        <tt id="link-112" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-112', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">axes</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">        <tt id="link-113" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-113', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">x_interval</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">        <tt id="link-114" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-114', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-name">y_interval</tt>         </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">setting</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'tight'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">        <tt id="link-115" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-115', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'fit'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">        <tt id="link-116" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-116', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'fit'</tt><tt class="py-op">,</tt><tt class="py-string">'fit'</tt><tt class="py-op">]</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">        <tt id="link-117" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-117', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">        <tt id="link-118" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-118', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">tick_interval</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">        <tt id="link-119" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-119', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">x_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">        <tt id="link-120" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-120', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">y_axis</tt><tt class="py-op">.</tt><tt class="py-name">bounds</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">setting</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">    <tt id="link-121" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-121', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-122" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-122', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
</div><a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"> </tt>
<a name="save"></a><div id="save-def"><a name="L224"></a><tt class="py-lineno">224</tt> <a class="py-toggle" href="#" id="save-toggle" onclick="return toggle('save');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#save">save</a><tt class="py-op">(</tt><tt class="py-param">file_name</tt><tt class="py-op">,</tt><tt class="py-param">format</tt><tt class="py-op">=</tt><tt class="py-string">'png'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="save-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="save-expanded"><a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">    <tt id="link-123" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-123', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-124" class="py-name" targets="Function Priithon.Mrc.save()=Priithon.Mrc-module.html#save,Method Priithon.mmviewer.GLViewer.save()=Priithon.mmviewer.GLViewer-class.html#save,Function Priithon.plt.interface.save()=Priithon.plt.interface-module.html#save,Method Priithon.plt.wxplt.plot_canvas.save()=Priithon.plt.wxplt.plot_canvas-class.html#save,Method Priithon.py.buffer.Buffer.save()=Priithon.py.buffer.Buffer-class.html#save"><a title="Priithon.Mrc.save
Priithon.mmviewer.GLViewer.save
Priithon.plt.interface.save
Priithon.plt.wxplt.plot_canvas.save
Priithon.py.buffer.Buffer.save" class="py-name" href="#" onclick="return doclink('link-124', 'save', 'link-124');">save</a></tt><tt class="py-op">(</tt><tt class="py-name">file_name</tt><tt class="py-op">,</tt><tt class="py-name">format</tt><tt class="py-op">)</tt> </tt>
</div><a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line"> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line"> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line"><tt class="py-comment">##########################################################</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#----------------- plotting machinery -------------------#</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">##########################################################</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line"><tt class="py-comment">#---- array utilities ------------</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="is1D"></a><div id="is1D-def"><a name="L234"></a><tt class="py-lineno">234</tt> <a class="py-toggle" href="#" id="is1D-toggle" onclick="return toggle('is1D');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#is1D">is1D</a><tt class="py-op">(</tt><tt class="py-param">a</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="is1D-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="is1D-expanded"><a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">    <tt class="py-name">ashape</tt> <tt class="py-op">=</tt> <tt id="link-125" class="py-name" targets="Variable Priithon.mockNDarray.mockNDarray.shape=Priithon.mockNDarray.mockNDarray-class.html#shape"><a title="Priithon.mockNDarray.mockNDarray.shape" class="py-name" href="#" onclick="return doclink('link-125', 'shape', 'link-125');">shape</a></tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">)</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">ashape</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">1</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">ashape</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-keyword">or</tt> <tt class="py-name">ashape</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">1</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-number">0</tt> </tt>
</div><a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">     </tt>
<a name="row"></a><div id="row-def"><a name="L242"></a><tt class="py-lineno">242</tt> <a class="py-toggle" href="#" id="row-toggle" onclick="return toggle('row');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#row">row</a><tt class="py-op">(</tt><tt class="py-param">a</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="row-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="row-expanded"><a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">reshape</tt><tt class="py-op">(</tt><tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="col"></a><div id="col-def"><a name="L244"></a><tt class="py-lineno">244</tt> <a class="py-toggle" href="#" id="col-toggle" onclick="return toggle('col');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#col">col</a><tt class="py-op">(</tt><tt class="py-param">a</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="col-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="col-expanded"><a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">reshape</tt><tt class="py-op">(</tt><tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line"> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line"><tt id="link-126" class="py-name" targets="Variable Priithon.plt.interface.SizeMismatch=Priithon.plt.interface-module.html#SizeMismatch"><a title="Priithon.plt.interface.SizeMismatch" class="py-name" href="#" onclick="return doclink('link-126', 'SizeMismatch', 'link-126');">SizeMismatch</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'SizeMismatch'</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line"><tt id="link-127" class="py-name" targets="Variable Priithon.plt.interface.SizeError=Priithon.plt.interface-module.html#SizeError"><a title="Priithon.plt.interface.SizeError" class="py-name" href="#" onclick="return doclink('link-127', 'SizeError', 'link-127');">SizeError</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'SizeError'</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line"><tt id="link-128" class="py-name" targets="Variable Priithon.plt.interface.NotImplemented=Priithon.plt.interface-module.html#NotImplemented"><a title="Priithon.plt.interface.NotImplemented" class="py-name" href="#" onclick="return doclink('link-128', 'NotImplemented', 'link-128');">NotImplemented</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'NotImplemented'</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line"> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line"><tt class="py-comment">#------------ Numerical constants ----------------</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line"><tt class="py-comment"># really should do better than this...</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-129" class="py-name" targets="Variable Priithon.plt.interface.BIG=Priithon.plt.interface-module.html#BIG"><a title="Priithon.plt.interface.BIG" class="py-name" href="#" onclick="return doclink('link-129', 'BIG', 'link-129');">BIG</a></tt> <tt class="py-op">=</tt> <tt class="py-number">1e20</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line"><tt id="link-130" class="py-name" targets="Variable Priithon.plt.interface.SMALL=Priithon.plt.interface-module.html#SMALL"><a title="Priithon.plt.interface.SMALL" class="py-name" href="#" onclick="return doclink('link-130', 'SMALL', 'link-130');">SMALL</a></tt> <tt class="py-op">=</tt> <tt class="py-number">1e-20</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line"> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line"><tt class="py-comment">#------------ plot group parsing -----------------</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">from</tt> <tt class="py-name">types</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line"> </tt>
<a name="plot_groups"></a><div id="plot_groups-def"><a name="L260"></a><tt class="py-lineno">260</tt> <a class="py-toggle" href="#" id="plot_groups-toggle" onclick="return toggle('plot_groups');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#plot_groups">plot_groups</a><tt class="py-op">(</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot_groups-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="plot_groups-expanded"><a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line">    <tt class="py-name">remains</tt> <tt class="py-op">=</tt> <tt id="link-131" class="py-name" targets="Variable Priithon.viewerRubberbandMode.viewerRubberbandMode.data=Priithon.viewerRubberbandMode.viewerRubberbandMode-class.html#data"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-131', 'data', 'link-131');">data</a></tt><tt class="py-op">;</tt> <tt class="py-name">groups</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">    <tt class="py-keyword">while</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">remains</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">        <tt class="py-name">group</tt><tt class="py-op">,</tt><tt class="py-name">remains</tt> <tt class="py-op">=</tt> <tt id="link-132" class="py-name" targets="Function Priithon.plt.interface.get_plot_group()=Priithon.plt.interface-module.html#get_plot_group"><a title="Priithon.plt.interface.get_plot_group" class="py-name" href="#" onclick="return doclink('link-132', 'get_plot_group', 'link-132');">get_plot_group</a></tt><tt class="py-op">(</tt><tt class="py-name">remains</tt><tt class="py-op">)</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">        <tt class="py-name">groups</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">group</tt><tt class="py-op">)</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">groups</tt>         </tt>
</div><a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">     </tt>
<a name="get_plot_group"></a><div id="get_plot_group-def"><a name="L267"></a><tt class="py-lineno">267</tt> <a class="py-toggle" href="#" id="get_plot_group-toggle" onclick="return toggle('get_plot_group');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#get_plot_group">get_plot_group</a><tt class="py-op">(</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="get_plot_group-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="get_plot_group-expanded"><a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line">    <tt class="py-name">group</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">    <tt class="py-name">remains</tt> <tt class="py-op">=</tt> <tt id="link-133" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-133', 'data', 'link-131');">data</a></tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">    <tt class="py-name">state</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">    <tt class="py-name">finished</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">    <tt class="py-keyword">while</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">remains</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">finished</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line">        <tt class="py-name">el</tt> <tt class="py-op">=</tt> <tt class="py-name">remains</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">state</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">            <tt class="py-name">el</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">)</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">            <tt class="py-name">state</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt>  </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt><tt class="py-op">(</tt><tt class="py-name">state</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">StringType</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">                <tt class="py-name">finished</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">                <tt class="py-name">el</tt> <tt class="py-op">=</tt> <tt class="py-name">asarray</tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">)</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">            <tt class="py-name">state</tt> <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt><tt class="py-op">(</tt><tt class="py-name">state</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">            <tt class="py-name">finished</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">StringType</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">                <tt class="py-keyword">break</tt> </tt>
<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">el</tt><tt class="py-op">.</tt><tt class="py-name">typecode</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">'D'</tt><tt class="py-op">:</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">'warning plotting magnitude of complex values'</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">                <tt class="py-name">el</tt> <tt class="py-op">=</tt> <tt class="py-name">abs</tt><tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">)</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line">        <tt class="py-name">group</tt> <tt class="py-op">=</tt> <tt class="py-name">group</tt> <tt class="py-op">+</tt> <tt class="py-op">(</tt><tt class="py-name">el</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">        <tt class="py-name">remains</tt> <tt class="py-op">=</tt> <tt class="py-name">remains</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt>        </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">group</tt><tt class="py-op">,</tt> <tt class="py-name">remains</tt>            </tt>
</div><a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line"> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line"><tt class="py-comment">#20060726  - now in numpy</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#20060726 def hstack(tup):</tt> </tt>
<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#20060726   #horizontal stack (column wise)</tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#20060726   return concatenate(tup,1)</tt> </tt>
<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line"><tt class="py-comment"># #20060824 BUT numpy doesn't like float32 together with int32</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># #HACK</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># def hstack(tup):</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     #horizontal stack (column wise)</tt> </tt>
<a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     tup = N.astup[0], dtype=tup[1].dtype), tup[1]</tt> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#     return concatenate(tup,1)</tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="lines_from_group"></a><div id="lines_from_group-def"><a name="L309"></a><tt class="py-lineno">309</tt> <a class="py-toggle" href="#" id="lines_from_group-toggle" onclick="return toggle('lines_from_group');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#lines_from_group">lines_from_group</a><tt class="py-op">(</tt><tt class="py-param">group</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="lines_from_group-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="lines_from_group-expanded"><a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line">    <tt class="py-name">lines</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line">    <tt class="py-name">plotinfo</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line">    <tt id="link-134" class="py-name" targets="Variable Priithon.viewer.x=Priithon.viewer-module.html#x,Variable Priithon.viewer2.x=Priithon.viewer2-module.html#x,Variable Priithon.viewerCommon.x=Priithon.viewerCommon-module.html#x"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-134', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-name">group</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line">    <tt class="py-name">ar_num</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">group</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">group</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">StringType</tt><tt class="py-op">:</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line">            <tt class="py-name">plotinfo</tt> <tt class="py-op">=</tt> <tt class="py-name">group</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">            <tt class="py-name">ar_num</tt> <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">            <tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt class="py-name">group</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">group</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">3</tt><tt class="py-op">:</tt> </tt>
<a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line">        <tt class="py-name">plotinfo</tt> <tt class="py-op">=</tt> <tt class="py-name">group</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">    <tt class="py-comment">#force 1D arrays to 2D columns</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt id="link-135" class="py-name" targets="Function Priithon.plt.interface.is1D()=Priithon.plt.interface-module.html#is1D"><a title="Priithon.plt.interface.is1D" class="py-name" href="#" onclick="return doclink('link-135', 'is1D', 'link-135');">is1D</a></tt><tt class="py-op">(</tt><tt id="link-136" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-136', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line">        <tt id="link-137" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-137', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-138" class="py-name" targets="Function Priithon.plt.interface.col()=Priithon.plt.interface-module.html#col"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-138', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt id="link-139" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-139', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">ar_num</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt> <tt class="py-keyword">and</tt> <tt id="link-140" class="py-name"><a title="Priithon.plt.interface.is1D" class="py-name" href="#" onclick="return doclink('link-140', 'is1D', 'link-135');">is1D</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>   </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line">        <tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt id="link-141" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-141', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line">     </tt>
<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">    <tt class="py-name">xs</tt> <tt class="py-op">=</tt> <tt id="link-142" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.shape" class="py-name" href="#" onclick="return doclink('link-142', 'shape', 'link-125');">shape</a></tt><tt class="py-op">(</tt><tt id="link-143" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-143', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt>             </tt>
<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">ar_num</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt>  <tt class="py-name">ys</tt> <tt class="py-op">=</tt> <tt id="link-144" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.shape" class="py-name" href="#" onclick="return doclink('link-144', 'shape', 'link-125');">shape</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line">    <tt class="py-comment">#test that x and y have compatible shapes</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt class="py-name">ar_num</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line">        <tt class="py-comment">#check that each array has the same number of rows</tt> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">xs</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">ys</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-145" class="py-name"><a title="Priithon.plt.interface.SizeMismatch" class="py-name" href="#" onclick="return doclink('link-145', 'SizeMismatch', 'link-126');">SizeMismatch</a></tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-string">'rows'</tt><tt class="py-op">,</tt> <tt class="py-name">xs</tt><tt class="py-op">,</tt> <tt class="py-name">ys</tt><tt class="py-op">)</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line">        <tt class="py-comment">#check that x.cols = y.cols</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#no error x has 1 column</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">xs</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt> <tt class="py-keyword">and</tt> <tt class="py-name">xs</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">ys</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-146" class="py-name"><a title="Priithon.plt.interface.SizeMismatch" class="py-name" href="#" onclick="return doclink('link-146', 'SizeMismatch', 'link-126');">SizeMismatch</a></tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-string">'cols'</tt><tt class="py-op">,</tt> <tt class="py-name">xs</tt><tt class="py-op">,</tt> <tt class="py-name">ys</tt><tt class="py-op">)</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line">     </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line">    <tt class="py-comment">#plot x against index</tt> </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">ar_num</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">y_data</tt> <tt class="py-keyword">in</tt> <tt id="link-147" class="py-name" targets="Method Priithon.mockNDarray.mockNDarray.transpose()=Priithon.mockNDarray.mockNDarray-class.html#transpose"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-147', 'transpose', 'link-147');">transpose</a></tt><tt class="py-op">(</tt><tt id="link-148" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-148', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">            <tt class="py-name">index</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">y_data</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-149" class="py-name" targets="Variable Priithon.mockNDarray.mockNDarray.dtype=Priithon.mockNDarray.mockNDarray-class.html#dtype"><a title="Priithon.mockNDarray.mockNDarray.dtype" class="py-name" href="#" onclick="return doclink('link-149', 'dtype', 'link-149');">dtype</a></tt><tt class="py-op">=</tt><tt id="link-150" class="py-name" targets="Function Priithon.plt.seb.dtypeBigEnough()=Priithon.plt.seb-module.html#dtypeBigEnough"><a title="Priithon.plt.seb.dtypeBigEnough" class="py-name" href="#" onclick="return doclink('link-150', 'dtypeBigEnough', 'link-150');">dtypeBigEnough</a></tt><tt class="py-op">(</tt><tt class="py-name">y_data</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-comment">#dtype HACK: numpy doesn't like float32 together with int32</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">            <tt class="py-name">pts</tt> <tt class="py-op">=</tt> <tt class="py-name">hstack</tt><tt class="py-op">(</tt><tt class="py-op">(</tt> <tt id="link-151" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-151', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt class="py-name">index</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-152" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-152', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt class="py-name">y_data</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">            <tt class="py-name">pts</tt> <tt class="py-op">=</tt> <tt id="link-153" class="py-name" targets="Function Priithon.plt.interface.remove_bad_vals()=Priithon.plt.interface-module.html#remove_bad_vals"><a title="Priithon.plt.interface.remove_bad_vals" class="py-name" href="#" onclick="return doclink('link-153', 'remove_bad_vals', 'link-153');">remove_bad_vals</a></tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">            <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">plot_module</tt><tt class="py-op">.</tt><tt id="link-154" class="py-name" targets="Class Priithon.plt.plot_objects.line_object=Priithon.plt.plot_objects.line_object-class.html"><a title="Priithon.plt.plot_objects.line_object" class="py-name" href="#" onclick="return doclink('link-154', 'line_object', 'link-154');">line_object</a></tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt>             </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line">            <tt class="py-name">lines</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">    <tt class="py-comment">#plot x vs y                    </tt> </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">elif</tt><tt class="py-op">(</tt><tt class="py-name">ar_num</tt> <tt class="py-op">==</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">        <tt class="py-comment">#x is effectively 1D</tt> </tt>
<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt><tt class="py-op">(</tt><tt class="py-name">xs</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">y_data</tt> <tt class="py-keyword">in</tt> <tt id="link-155" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-155', 'transpose', 'link-147');">transpose</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">                <tt class="py-name">xx</tt> <tt class="py-op">=</tt> <tt id="link-156" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-156', 'x', 'link-134');">x</a></tt><tt class="py-op">.</tt><tt class="py-name">astype</tt><tt class="py-op">(</tt><tt id="link-157" class="py-name"><a title="Priithon.plt.seb.dtypeBigEnough" class="py-name" href="#" onclick="return doclink('link-157', 'dtypeBigEnough', 'link-150');">dtypeBigEnough</a></tt><tt class="py-op">(</tt><tt class="py-name">y_data</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-comment">#dtype HACK: numpy doesn't like float32 together with int32</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line">                <tt class="py-name">pts</tt> <tt class="py-op">=</tt> <tt class="py-name">hstack</tt><tt class="py-op">(</tt><tt class="py-op">(</tt> <tt id="link-158" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-158', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt class="py-name">xx</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-159" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-159', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt class="py-name">y_data</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line">                <tt class="py-name">pts</tt> <tt class="py-op">=</tt> <tt id="link-160" class="py-name"><a title="Priithon.plt.interface.remove_bad_vals" class="py-name" href="#" onclick="return doclink('link-160', 'remove_bad_vals', 'link-153');">remove_bad_vals</a></tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line">                <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">plot_module</tt><tt class="py-op">.</tt><tt id="link-161" class="py-name"><a title="Priithon.plt.plot_objects.line_object" class="py-name" href="#" onclick="return doclink('link-161', 'line_object', 'link-154');">line_object</a></tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line">                <tt class="py-name">lines</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line">        <tt class="py-comment">#x is 2D                    </tt> </tt>
<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line">            <tt id="link-162" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-162', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-163" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-163', 'transpose', 'link-147');">transpose</a></tt><tt class="py-op">(</tt><tt id="link-164" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-164', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">;</tt> <tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt id="link-165" class="py-name"><a title="Priithon.mockNDarray.mockNDarray.transpose" class="py-name" href="#" onclick="return doclink('link-165', 'transpose', 'link-147');">transpose</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L361"></a><tt class="py-lineno">361</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-166" class="py-name" targets="Variable Priithon.viewer.i=Priithon.viewer-module.html#i,Variable Priithon.viewer2.i=Priithon.viewer2-module.html#i,Variable Priithon.viewerCommon.i=Priithon.viewerCommon-module.html#i"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-166', 'i', 'link-166');">i</a></tt> <tt class="py-keyword">in</tt> <tt id="link-167" class="py-name" targets="Method Priithon.plt.plot_objects.axis_object.range()=Priithon.plt.plot_objects.axis_object-class.html#range"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-167', 'range', 'link-167');">range</a></tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-168" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-168', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">                <tt class="py-name">pts</tt> <tt class="py-op">=</tt> <tt class="py-name">hstack</tt><tt class="py-op">(</tt><tt class="py-op">(</tt> <tt id="link-169" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-169', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt id="link-170" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-170', 'x', 'link-134');">x</a></tt><tt class="py-op">[</tt><tt id="link-171" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-171', 'i', 'link-166');">i</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-172" class="py-name"><a title="Priithon.plt.interface.col" class="py-name" href="#" onclick="return doclink('link-172', 'col', 'link-138');">col</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">[</tt><tt id="link-173" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-173', 'i', 'link-166');">i</a></tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">                <tt class="py-name">pts</tt> <tt class="py-op">=</tt> <tt id="link-174" class="py-name"><a title="Priithon.plt.interface.remove_bad_vals" class="py-name" href="#" onclick="return doclink('link-174', 'remove_bad_vals', 'link-153');">remove_bad_vals</a></tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line">                <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-name">plot_module</tt><tt class="py-op">.</tt><tt id="link-175" class="py-name"><a title="Priithon.plt.plot_objects.line_object" class="py-name" href="#" onclick="return doclink('link-175', 'line_object', 'link-154');">line_object</a></tt><tt class="py-op">(</tt><tt class="py-name">pts</tt><tt class="py-op">)</tt> </tt>
<a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line">                <tt class="py-name">lines</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">line</tt><tt class="py-op">)</tt> </tt>
<a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line">    <tt class="py-name">color</tt><tt class="py-op">,</tt><tt class="py-name">marker</tt><tt class="py-op">,</tt><tt class="py-name">line_type</tt> <tt class="py-op">=</tt> <tt id="link-176" class="py-name" targets="Function Priithon.plt.interface.process_format()=Priithon.plt.interface-module.html#process_format"><a title="Priithon.plt.interface.process_format" class="py-name" href="#" onclick="return doclink('link-176', 'process_format', 'link-176');">process_format</a></tt><tt class="py-op">(</tt><tt class="py-name">plotinfo</tt><tt class="py-op">)</tt> </tt>
<a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">    <tt class="py-comment">#print color,marker,line_type</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">for</tt> <tt class="py-name">line</tt> <tt class="py-keyword">in</tt> <tt class="py-name">lines</tt><tt class="py-op">:</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">color</tt> <tt class="py-op">!=</tt> <tt class="py-string">'auto'</tt><tt class="py-op">:</tt> </tt>
<a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">color</tt> <tt class="py-op">=</tt> <tt class="py-string">'custom'</tt> </tt>
<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-177" class="py-name" targets="Method Priithon.plt.plot_objects.line_object.set_color()=Priithon.plt.plot_objects.line_object-class.html#set_color"><a title="Priithon.plt.plot_objects.line_object.set_color" class="py-name" href="#" onclick="return doclink('link-177', 'set_color', 'link-177');">set_color</a></tt><tt class="py-op">(</tt><tt class="py-name">color</tt><tt class="py-op">)</tt> </tt>
<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line">            <tt class="py-comment">#print color</tt> </tt>
<a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">marker</tt><tt class="py-op">:</tt> </tt>
<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">marker_type</tt> <tt class="py-op">=</tt> <tt class="py-string">'custom'</tt> </tt>
<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-178" class="py-name" targets="Function Priithon.plt.interface.markers()=Priithon.plt.interface-module.html#markers"><a title="Priithon.plt.interface.markers" class="py-name" href="#" onclick="return doclink('link-178', 'markers', 'link-178');">markers</a></tt><tt class="py-op">.</tt><tt class="py-name">visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'no'</tt> </tt>
<a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">            <tt class="py-comment">#print marker</tt> </tt>
<a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">elif</tt> <tt class="py-name">marker</tt> <tt class="py-op">!=</tt> <tt class="py-string">'auto'</tt><tt class="py-op">:</tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">marker_type</tt> <tt class="py-op">=</tt> <tt class="py-string">'custom'</tt> </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-179" class="py-name"><a title="Priithon.plt.interface.markers" class="py-name" href="#" onclick="return doclink('link-179', 'markers', 'link-178');">markers</a></tt><tt class="py-op">.</tt><tt class="py-name">symbol</tt> <tt class="py-op">=</tt> <tt class="py-name">marker</tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt id="link-180" class="py-name"><a title="Priithon.plt.interface.markers" class="py-name" href="#" onclick="return doclink('link-180', 'markers', 'link-178');">markers</a></tt><tt class="py-op">.</tt><tt class="py-name">visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'yes'</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">            <tt class="py-comment">#print marker</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">line_type</tt><tt class="py-op">:</tt> </tt>
<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">line_type</tt> <tt class="py-op">=</tt> <tt class="py-string">'custom'</tt> </tt>
<a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'no'</tt> </tt>
<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">line_type</tt> <tt class="py-op">!=</tt> <tt class="py-string">'auto'</tt><tt class="py-op">:</tt> </tt>
<a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">line_type</tt> <tt class="py-op">=</tt> <tt class="py-string">'custom'</tt> </tt>
<a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">visible</tt> <tt class="py-op">=</tt> <tt class="py-string">'yes'</tt> </tt>
<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line">            <tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">line</tt><tt class="py-op">.</tt><tt class="py-name">style</tt> <tt class="py-op">=</tt> <tt class="py-name">line_type</tt> </tt>
<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line">            <tt class="py-comment">#print line_type</tt> </tt>
<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#print line.markers.visible,    line.line.visible,</tt> </tt>
<a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">return</tt> <tt class="py-name">lines</tt> </tt>
</div><a name="L392"></a><tt class="py-lineno">392</tt>  <tt class="py-line"> </tt>
<a name="L393"></a><tt class="py-lineno">393</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">re</tt> </tt>
<a name="L394"></a><tt class="py-lineno">394</tt>  <tt class="py-line"><tt id="link-181" class="py-name" targets="Variable Priithon.plt.interface.color_re=Priithon.plt.interface-module.html#color_re"><a title="Priithon.plt.interface.color_re" class="py-name" href="#" onclick="return doclink('link-181', 'color_re', 'link-181');">color_re</a></tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">compile</tt><tt class="py-op">(</tt><tt class="py-string">'[ymcrgbwk]'</tt><tt class="py-op">)</tt> </tt>
<a name="L395"></a><tt class="py-lineno">395</tt>  <tt class="py-line"><tt id="link-182" class="py-name" targets="Variable Priithon.plt.interface.color_trans=Priithon.plt.interface-module.html#color_trans"><a title="Priithon.plt.interface.color_trans" class="py-name" href="#" onclick="return doclink('link-182', 'color_trans', 'link-182');">color_trans</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'y'</tt><tt class="py-op">:</tt><tt class="py-string">'yellow'</tt><tt class="py-op">,</tt><tt class="py-string">'m'</tt><tt class="py-op">:</tt><tt class="py-string">'magenta'</tt><tt class="py-op">,</tt><tt class="py-string">'c'</tt><tt class="py-op">:</tt><tt class="py-string">'cyan'</tt><tt class="py-op">,</tt><tt class="py-string">'r'</tt><tt class="py-op">:</tt><tt class="py-string">'red'</tt><tt class="py-op">,</tt><tt class="py-string">'g'</tt><tt class="py-op">:</tt><tt class="py-string">'green'</tt><tt class="py-op">,</tt> </tt>
<a name="L396"></a><tt class="py-lineno">396</tt>  <tt class="py-line">               <tt class="py-string">'b'</tt><tt class="py-op">:</tt><tt class="py-string">'blue'</tt><tt class="py-op">,</tt> <tt class="py-string">'w'</tt><tt class="py-op">:</tt><tt class="py-string">'white'</tt><tt class="py-op">,</tt><tt class="py-string">'k'</tt><tt class="py-op">:</tt><tt class="py-string">'black'</tt><tt class="py-op">}</tt> </tt>
<a name="L397"></a><tt class="py-lineno">397</tt>  <tt class="py-line"><tt class="py-comment"># this one isn't quite right               </tt> </tt>
<a name="L398"></a><tt class="py-lineno">398</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-183" class="py-name" targets="Variable Priithon.plt.interface.marker_re=Priithon.plt.interface-module.html#marker_re"><a title="Priithon.plt.interface.marker_re" class="py-name" href="#" onclick="return doclink('link-183', 'marker_re', 'link-183');">marker_re</a></tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">compile</tt><tt class="py-op">(</tt><tt class="py-string">'[ox+s^v]|(?:[^-])[.]'</tt><tt class="py-op">)</tt> </tt>
<a name="L399"></a><tt class="py-lineno">399</tt>  <tt class="py-line"><tt id="link-184" class="py-name" targets="Variable Priithon.plt.interface.marker_trans=Priithon.plt.interface-module.html#marker_trans"><a title="Priithon.plt.interface.marker_trans" class="py-name" href="#" onclick="return doclink('link-184', 'marker_trans', 'link-184');">marker_trans</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'.'</tt><tt class="py-op">:</tt><tt class="py-string">'dot'</tt><tt class="py-op">,</tt><tt class="py-string">'o'</tt><tt class="py-op">:</tt><tt class="py-string">'circle'</tt><tt class="py-op">,</tt><tt class="py-string">'x'</tt><tt class="py-op">:</tt><tt class="py-string">'cross'</tt><tt class="py-op">,</tt><tt class="py-string">'+'</tt><tt class="py-op">:</tt><tt class="py-string">'plus'</tt><tt class="py-op">,</tt><tt class="py-string">'s'</tt><tt class="py-op">:</tt><tt class="py-string">'square'</tt><tt class="py-op">,</tt> </tt>
<a name="L400"></a><tt class="py-lineno">400</tt>  <tt class="py-line">                <tt class="py-string">'^'</tt><tt class="py-op">:</tt><tt class="py-string">'triangle'</tt><tt class="py-op">,</tt><tt class="py-string">'v'</tt><tt class="py-op">:</tt><tt class="py-string">'down_triangle'</tt><tt class="py-op">}</tt> </tt>
<a name="L401"></a><tt class="py-lineno">401</tt>  <tt class="py-line"> </tt>
<a name="L402"></a><tt class="py-lineno">402</tt>  <tt class="py-line"><tt id="link-185" class="py-name" targets="Variable Priithon.plt.interface.line_re=Priithon.plt.interface-module.html#line_re"><a title="Priithon.plt.interface.line_re" class="py-name" href="#" onclick="return doclink('link-185', 'line_re', 'link-185');">line_re</a></tt> <tt class="py-op">=</tt> <tt class="py-name">re</tt><tt class="py-op">.</tt><tt class="py-name">compile</tt><tt class="py-op">(</tt><tt class="py-string">'--|-\.|[-:]'</tt><tt class="py-op">)</tt> </tt>
<a name="L403"></a><tt class="py-lineno">403</tt>  <tt class="py-line"><tt id="link-186" class="py-name" targets="Variable Priithon.plt.interface.line_trans=Priithon.plt.interface-module.html#line_trans"><a title="Priithon.plt.interface.line_trans" class="py-name" href="#" onclick="return doclink('link-186', 'line_trans', 'link-186');">line_trans</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'-'</tt><tt class="py-op">:</tt><tt class="py-string">'solid'</tt><tt class="py-op">,</tt><tt class="py-string">':'</tt><tt class="py-op">:</tt><tt class="py-string">'dot'</tt><tt class="py-op">,</tt><tt class="py-string">'-.'</tt><tt class="py-op">:</tt><tt class="py-string">'dot dash'</tt><tt class="py-op">,</tt><tt class="py-string">'--'</tt><tt class="py-op">:</tt><tt class="py-string">'dash'</tt><tt class="py-op">}</tt> </tt>
<a name="process_format"></a><div id="process_format-def"><a name="L404"></a><tt class="py-lineno">404</tt> <a class="py-toggle" href="#" id="process_format-toggle" onclick="return toggle('process_format');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#process_format">process_format</a><tt class="py-op">(</tt><tt class="py-param">format</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="process_format-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="process_format-expanded"><a name="L405"></a><tt class="py-lineno">405</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">format</tt> <tt class="py-op">==</tt> <tt class="py-string">''</tt><tt class="py-op">:</tt> </tt>
<a name="L406"></a><tt class="py-lineno">406</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-string">'auto'</tt> </tt>
<a name="L407"></a><tt class="py-lineno">407</tt>  <tt class="py-line">    <tt class="py-name">color</tt><tt class="py-op">,</tt><tt class="py-name">marker</tt><tt class="py-op">,</tt><tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt class="py-string">'auto'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-name">None</tt> </tt>
<a name="L408"></a><tt class="py-lineno">408</tt>  <tt class="py-line">    <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt id="link-187" class="py-name"><a title="Priithon.plt.interface.color_re" class="py-name" href="#" onclick="return doclink('link-187', 'color_re', 'link-181');">color_re</a></tt><tt class="py-op">.</tt><tt class="py-name">findall</tt><tt class="py-op">(</tt><tt class="py-name">format</tt><tt class="py-op">)</tt> </tt>
<a name="L409"></a><tt class="py-lineno">409</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">m</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">color</tt> <tt class="py-op">=</tt> <tt id="link-188" class="py-name"><a title="Priithon.plt.interface.color_trans" class="py-name" href="#" onclick="return doclink('link-188', 'color_trans', 'link-182');">color_trans</a></tt><tt class="py-op">[</tt><tt class="py-name">m</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L410"></a><tt class="py-lineno">410</tt>  <tt class="py-line">    <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt id="link-189" class="py-name"><a title="Priithon.plt.interface.marker_re" class="py-name" href="#" onclick="return doclink('link-189', 'marker_re', 'link-183');">marker_re</a></tt><tt class="py-op">.</tt><tt class="py-name">findall</tt><tt class="py-op">(</tt><tt class="py-name">format</tt><tt class="py-op">)</tt> </tt>
<a name="L411"></a><tt class="py-lineno">411</tt>  <tt class="py-line">    <tt class="py-comment"># the -1 takes care of 'r.', etc</tt> </tt>
<a name="L412"></a><tt class="py-lineno">412</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">m</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">marker</tt> <tt class="py-op">=</tt> <tt id="link-190" class="py-name"><a title="Priithon.plt.interface.marker_trans" class="py-name" href="#" onclick="return doclink('link-190', 'marker_trans', 'link-184');">marker_trans</a></tt><tt class="py-op">[</tt><tt class="py-name">m</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt>     </tt>
<a name="L413"></a><tt class="py-lineno">413</tt>  <tt class="py-line">    <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt id="link-191" class="py-name"><a title="Priithon.plt.interface.line_re" class="py-name" href="#" onclick="return doclink('link-191', 'line_re', 'link-185');">line_re</a></tt><tt class="py-op">.</tt><tt class="py-name">findall</tt><tt class="py-op">(</tt><tt class="py-name">format</tt><tt class="py-op">)</tt> </tt>
<a name="L414"></a><tt class="py-lineno">414</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">m</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">line</tt> <tt class="py-op">=</tt> <tt id="link-192" class="py-name"><a title="Priithon.plt.interface.line_trans" class="py-name" href="#" onclick="return doclink('link-192', 'line_trans', 'link-186');">line_trans</a></tt><tt class="py-op">[</tt><tt class="py-name">m</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L415"></a><tt class="py-lineno">415</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">color</tt><tt class="py-op">,</tt><tt class="py-name">marker</tt><tt class="py-op">,</tt><tt class="py-name">line</tt> </tt>
</div><a name="L416"></a><tt class="py-lineno">416</tt>  <tt class="py-line">     </tt>
<a name="remove_bad_vals"></a><div id="remove_bad_vals-def"><a name="L417"></a><tt class="py-lineno">417</tt> <a class="py-toggle" href="#" id="remove_bad_vals-toggle" onclick="return toggle('remove_bad_vals');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#remove_bad_vals">remove_bad_vals</a><tt class="py-op">(</tt><tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="remove_bad_vals-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="remove_bad_vals-expanded"><a name="L418"></a><tt class="py-lineno">418</tt>  <tt class="py-line">    <tt class="py-comment"># !! Fix axis order when interface changed.</tt> </tt>
<a name="L419"></a><tt class="py-lineno">419</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># mapping:</tt> </tt>
<a name="L420"></a><tt class="py-lineno">420</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    NaN -&gt; 0</tt> </tt>
<a name="L421"></a><tt class="py-lineno">421</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#    Inf -&gt; limits.double_max</tt> </tt>
<a name="L422"></a><tt class="py-lineno">422</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#   -Inf -&gt; limits.double_min</tt> </tt>
<a name="L423"></a><tt class="py-lineno">423</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt class="py-name">nan_to_num</tt><tt class="py-op">(</tt><tt id="link-193" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-193', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt>     </tt>
<a name="L424"></a><tt class="py-lineno">424</tt>  <tt class="py-line">    <tt class="py-comment">#seb big = limits.double_max / 10</tt> </tt>
<a name="L425"></a><tt class="py-lineno">425</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#seb small = limits.double_min / 10</tt> </tt>
<a name="L426"></a><tt class="py-lineno">426</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">big</tt> <tt class="py-op">=</tt> <tt id="link-194" class="py-name" targets="Function Priithon.plt.seb.big_for()=Priithon.plt.seb-module.html#big_for"><a title="Priithon.plt.seb.big_for" class="py-name" href="#" onclick="return doclink('link-194', 'big_for', 'link-194');">big_for</a></tt><tt class="py-op">(</tt><tt id="link-195" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-195', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt>  <tt class="py-comment"># was broken (OverflowError) for Float32</tt> </tt>
<a name="L427"></a><tt class="py-lineno">427</tt>  <tt class="py-line">    <tt class="py-name">small</tt> <tt class="py-op">=</tt> <tt id="link-196" class="py-name" targets="Function Priithon.plt.seb.small_for()=Priithon.plt.seb-module.html#small_for"><a title="Priithon.plt.seb.small_for" class="py-name" href="#" onclick="return doclink('link-196', 'small_for', 'link-196');">small_for</a></tt><tt class="py-op">(</tt><tt id="link-197" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-197', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt> </tt>
<a name="L428"></a><tt class="py-lineno">428</tt>  <tt class="py-line">    <tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt id="link-198" class="py-name" targets="Function Priithon.useful.clip()=Priithon.useful-module.html#clip"><a title="Priithon.useful.clip" class="py-name" href="#" onclick="return doclink('link-198', 'clip', 'link-198');">clip</a></tt><tt class="py-op">(</tt><tt class="py-name">y</tt><tt class="py-op">,</tt><tt class="py-name">small</tt><tt class="py-op">,</tt><tt class="py-name">big</tt><tt class="py-op">)</tt> </tt>
<a name="L429"></a><tt class="py-lineno">429</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">y</tt> </tt>
</div><a name="L430"></a><tt class="py-lineno">430</tt>  <tt class="py-line"> </tt>
<a name="stem"></a><div id="stem-def"><a name="L431"></a><tt class="py-lineno">431</tt> <a class="py-toggle" href="#" id="stem-toggle" onclick="return toggle('stem');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#stem">stem</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="stem-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="stem-expanded"><a name="L432"></a><tt class="py-lineno">432</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-199" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-199', 'data', 'link-131');">data</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L433"></a><tt class="py-lineno">433</tt>  <tt class="py-line">        <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-200" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-200', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L434"></a><tt class="py-lineno">434</tt>  <tt class="py-line">        <tt id="link-201" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-201', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-202" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-202', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L435"></a><tt class="py-lineno">435</tt>  <tt class="py-line">        <tt class="py-name">ltype</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'b-'</tt><tt class="py-op">,</tt><tt class="py-string">'mo'</tt><tt class="py-op">]</tt> </tt>
<a name="L436"></a><tt class="py-lineno">436</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-203" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-203', 'data', 'link-131');">data</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L437"></a><tt class="py-lineno">437</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt id="link-204" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-204', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-keyword">is</tt> <tt class="py-name">types</tt><tt class="py-op">.</tt><tt class="py-name">StringType</tt><tt class="py-op">:</tt> </tt>
<a name="L438"></a><tt class="py-lineno">438</tt>  <tt class="py-line">            <tt class="py-name">ltype</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt id="link-205" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-205', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'mo'</tt><tt class="py-op">]</tt> </tt>
<a name="L439"></a><tt class="py-lineno">439</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-206" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-206', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L440"></a><tt class="py-lineno">440</tt>  <tt class="py-line">            <tt id="link-207" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-207', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-208" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-208', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L441"></a><tt class="py-lineno">441</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt id="link-209" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-209', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">types</tt><tt class="py-op">.</tt><tt class="py-name">ListType</tt><tt class="py-op">,</tt> <tt class="py-name">types</tt><tt class="py-op">.</tt><tt class="py-name">TupleType</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L442"></a><tt class="py-lineno">442</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">arange</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-210" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-210', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L443"></a><tt class="py-lineno">443</tt>  <tt class="py-line">            <tt id="link-211" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-211', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-212" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-212', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt>             </tt>
<a name="L444"></a><tt class="py-lineno">444</tt>  <tt class="py-line">            <tt class="py-name">ltype</tt> <tt class="py-op">=</tt> <tt id="link-213" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-213', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L445"></a><tt class="py-lineno">445</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L446"></a><tt class="py-lineno">446</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt id="link-214" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-214', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L447"></a><tt class="py-lineno">447</tt>  <tt class="py-line">            <tt id="link-215" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-215', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-216" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-216', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L448"></a><tt class="py-lineno">448</tt>  <tt class="py-line">            <tt class="py-name">ltype</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'b-'</tt><tt class="py-op">,</tt><tt class="py-string">'mo'</tt><tt class="py-op">]</tt> </tt>
<a name="L449"></a><tt class="py-lineno">449</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-217" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-217', 'data', 'link-131');">data</a></tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L450"></a><tt class="py-lineno">450</tt>  <tt class="py-line">        <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt id="link-218" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-218', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L451"></a><tt class="py-lineno">451</tt>  <tt class="py-line">        <tt id="link-219" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-219', 'x', 'link-134');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-220" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-220', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L452"></a><tt class="py-lineno">452</tt>  <tt class="py-line">        <tt class="py-name">ltype</tt> <tt class="py-op">=</tt> <tt id="link-221" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-221', 'data', 'link-131');">data</a></tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L453"></a><tt class="py-lineno">453</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">ltype</tt><tt class="py-op">)</tt> <tt class="py-keyword">is</tt> <tt class="py-name">types</tt><tt class="py-op">.</tt><tt class="py-name">StringType</tt><tt class="py-op">:</tt> </tt>
<a name="L454"></a><tt class="py-lineno">454</tt>  <tt class="py-line">            <tt class="py-name">ltype</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">ltype</tt><tt class="py-op">,</tt><tt class="py-string">'mo'</tt><tt class="py-op">]</tt> </tt>
<a name="L455"></a><tt class="py-lineno">455</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L456"></a><tt class="py-lineno">456</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">,</tt> <tt class="py-string">"Invalid input arguments."</tt> </tt>
<a name="L457"></a><tt class="py-lineno">457</tt>  <tt class="py-line"> </tt>
<a name="L458"></a><tt class="py-lineno">458</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-222" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-222', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L459"></a><tt class="py-lineno">459</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt id="link-223" class="py-name"><a title="Priithon.plt.interface.SizeMismatch" class="py-name" href="#" onclick="return doclink('link-223', 'SizeMismatch', 'link-126');">SizeMismatch</a></tt><tt class="py-op">,</tt> <tt class="py-op">(</tt><tt class="py-string">'lengths'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-224" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-224', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L460"></a><tt class="py-lineno">460</tt>  <tt class="py-line">    <tt class="py-comment"># line at zero:</tt> </tt>
<a name="L461"></a><tt class="py-lineno">461</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">newdata</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L462"></a><tt class="py-lineno">462</tt>  <tt class="py-line">    <tt class="py-name">newdata</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">n</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">ltype</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L463"></a><tt class="py-lineno">463</tt>  <tt class="py-line"> </tt>
<a name="L464"></a><tt class="py-lineno">464</tt>  <tt class="py-line">    <tt class="py-comment"># stems</tt> </tt>
<a name="L465"></a><tt class="py-lineno">465</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">for</tt> <tt id="link-225" class="py-name" targets="Variable Priithon.py.introspect.k=Priithon.py.introspect-module.html#k"><a title="Priithon.py.introspect.k" class="py-name" href="#" onclick="return doclink('link-225', 'k', 'link-225');">k</a></tt> <tt class="py-keyword">in</tt> <tt id="link-226" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-226', 'range', 'link-167');">range</a></tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-227" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-227', 'x', 'link-134');">x</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L466"></a><tt class="py-lineno">466</tt>  <tt class="py-line">        <tt class="py-name">newdata</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">[</tt><tt id="link-228" class="py-name"><a title="Priithon.py.introspect.k" class="py-name" href="#" onclick="return doclink('link-228', 'k', 'link-225');">k</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">n</tt><tt class="py-op">[</tt><tt id="link-229" class="py-name"><a title="Priithon.py.introspect.k" class="py-name" href="#" onclick="return doclink('link-229', 'k', 'link-225');">k</a></tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt id="link-230" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-230', 'x', 'link-134');">x</a></tt><tt class="py-op">[</tt><tt id="link-231" class="py-name"><a title="Priithon.py.introspect.k" class="py-name" href="#" onclick="return doclink('link-231', 'k', 'link-225');">k</a></tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">ltype</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L467"></a><tt class="py-lineno">467</tt>  <tt class="py-line"> </tt>
<a name="L468"></a><tt class="py-lineno">468</tt>  <tt class="py-line">    <tt class="py-comment"># circles</tt> </tt>
<a name="L469"></a><tt class="py-lineno">469</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-name">newdata</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">,</tt><tt id="link-232" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-232', 'x', 'link-134');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">ltype</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L470"></a><tt class="py-lineno">470</tt>  <tt class="py-line">    <tt class="py-name">keywds</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'fill_style'</tt><tt class="py-op">:</tt> <tt class="py-string">'transparent'</tt><tt class="py-op">}</tt> </tt>
<a name="L471"></a><tt class="py-lineno">471</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-233" class="py-name" targets="Function Priithon.plt.interface.plot()=Priithon.plt.interface-module.html#plot"><a title="Priithon.plt.interface.plot" class="py-name" href="#" onclick="return doclink('link-233', 'plot', 'link-233');">plot</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">newdata</tt><tt class="py-op">,</tt><tt class="py-op">**</tt><tt class="py-name">keywds</tt><tt class="py-op">)</tt> </tt>
</div><a name="L472"></a><tt class="py-lineno">472</tt>  <tt class="py-line">     </tt>
<a name="L473"></a><tt class="py-lineno">473</tt>  <tt class="py-line">                            </tt>
<a name="L474"></a><tt class="py-lineno">474</tt>  <tt class="py-line">     </tt>
<a name="plot"></a><div id="plot-def"><a name="L475"></a><tt class="py-lineno">475</tt> <a class="py-toggle" href="#" id="plot-toggle" onclick="return toggle('plot');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#plot">plot</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">data</tt><tt class="py-op">,</tt><tt class="py-op">**</tt><tt class="py-param">keywds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="plot-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="plot-expanded"><a name="L476"></a><tt class="py-lineno">476</tt>  <tt class="py-line">    <tt class="py-name">groups</tt> <tt class="py-op">=</tt> <tt id="link-234" class="py-name" targets="Function Priithon.plt.interface.plot_groups()=Priithon.plt.interface-module.html#plot_groups"><a title="Priithon.plt.interface.plot_groups" class="py-name" href="#" onclick="return doclink('link-234', 'plot_groups', 'link-234');">plot_groups</a></tt><tt class="py-op">(</tt><tt id="link-235" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-235', 'data', 'link-131');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L477"></a><tt class="py-lineno">477</tt>  <tt class="py-line">    <tt class="py-name">lines</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L478"></a><tt class="py-lineno">478</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">group</tt> <tt class="py-keyword">in</tt> <tt class="py-name">groups</tt><tt class="py-op">:</tt> </tt>
<a name="L479"></a><tt class="py-lineno">479</tt>  <tt class="py-line">        <tt class="py-name">lines</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt id="link-236" class="py-name" targets="Function Priithon.plt.interface.lines_from_group()=Priithon.plt.interface-module.html#lines_from_group"><a title="Priithon.plt.interface.lines_from_group" class="py-name" href="#" onclick="return doclink('link-236', 'lines_from_group', 'link-236');">lines_from_group</a></tt><tt class="py-op">(</tt><tt class="py-name">group</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L480"></a><tt class="py-lineno">480</tt>  <tt class="py-line">        <tt class="py-comment">#default to markers being invisible</tt> </tt>
<a name="L481"></a><tt class="py-lineno">481</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-comment">#lines[-1].markers.visible = 'no'</tt> </tt>
<a name="L482"></a><tt class="py-lineno">482</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># check for hold here</tt> </tt>
<a name="L483"></a><tt class="py-lineno">483</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">for</tt> <tt id="link-237" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-237', 'name', 'link-77');">name</a></tt> <tt class="py-keyword">in</tt> <tt id="link-238" class="py-name"><a title="Priithon.plt.plot_objects" class="py-name" href="#" onclick="return doclink('link-238', 'plot_objects', 'link-2');">plot_objects</a></tt><tt class="py-op">.</tt><tt id="link-239" class="py-name" targets="Class Priithon.plt.plot_objects.poly_marker=Priithon.plt.plot_objects.poly_marker-class.html"><a title="Priithon.plt.plot_objects.poly_marker" class="py-name" href="#" onclick="return doclink('link-239', 'poly_marker', 'link-239');">poly_marker</a></tt><tt class="py-op">.</tt><tt id="link-240" class="py-name" targets="Variable Priithon.plt.plot_objects.axis_object._attributes=Priithon.plt.plot_objects.axis_object-class.html#_attributes,Variable Priithon.plt.plot_objects.border_object._attributes=Priithon.plt.plot_objects.border_object-class.html#_attributes,Variable Priithon.plt.plot_objects.image_object._attributes=Priithon.plt.plot_objects.image_object-class.html#_attributes,Variable Priithon.plt.plot_objects.legend_object._attributes=Priithon.plt.plot_objects.legend_object-class.html#_attributes,Variable Priithon.plt.plot_objects.line_object._attributes=Priithon.plt.plot_objects.line_object-class.html#_attributes,Variable Priithon.plt.plot_objects.poly_line._attributes=Priithon.plt.plot_objects.poly_line-class.html#_attributes,Variable Priithon.plt.plot_objects.poly_marker._attributes=Priithon.plt.plot_objects.poly_marker-class.html#_attributes,Variable Priithon.plt.plot_objects.text_object._attributes=Priithon.plt.plot_objects.text_object-class.html#_attributes,Variable Priithon.plt.wxplt.plot_canvas._attributes=Priithon.plt.wxplt.plot_canvas-class.html#_attributes,Variable Priithon.wxPyPlot.PolyLine._attributes=Priithon.wxPyPlot.PolyLine-class.html#_attributes,Variable Priithon.wxPyPlot.PolyMarker._attributes=Priithon.wxPyPlot.PolyMarker-class.html#_attributes"><a title="Priithon.plt.plot_objects.axis_object._attributes
Priithon.plt.plot_objects.border_object._attributes
Priithon.plt.plot_objects.image_object._attributes
Priithon.plt.plot_objects.legend_object._attributes
Priithon.plt.plot_objects.line_object._attributes
Priithon.plt.plot_objects.poly_line._attributes
Priithon.plt.plot_objects.poly_marker._attributes
Priithon.plt.plot_objects.text_object._attributes
Priithon.plt.wxplt.plot_canvas._attributes
Priithon.wxPyPlot.PolyLine._attributes
Priithon.wxPyPlot.PolyMarker._attributes" class="py-name" href="#" onclick="return doclink('link-240', '_attributes', 'link-240');">_attributes</a></tt><tt class="py-op">.</tt><tt id="link-241" class="py-name" targets="Method Priithon.plt.dumbdbm_patched._Database.keys()=Priithon.plt.dumbdbm_patched._Database-class.html#keys"><a title="Priithon.plt.dumbdbm_patched._Database.keys" class="py-name" href="#" onclick="return doclink('link-241', 'keys', 'link-241');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L484"></a><tt class="py-lineno">484</tt>  <tt class="py-line">        <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">keywds</tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt id="link-242" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-242', 'name', 'link-77');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L485"></a><tt class="py-lineno">485</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">value</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L486"></a><tt class="py-lineno">486</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-243" class="py-name"><a title="Priithon.py.introspect.k" class="py-name" href="#" onclick="return doclink('link-243', 'k', 'link-225');">k</a></tt> <tt class="py-keyword">in</tt> <tt id="link-244" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-244', 'range', 'link-167');">range</a></tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">lines</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L487"></a><tt class="py-lineno">487</tt>  <tt class="py-line">                <tt class="py-keyword">exec</tt><tt class="py-op">(</tt><tt class="py-string">'lines[k].markers.%s = value'</tt> <tt class="py-op">%</tt> <tt id="link-245" class="py-name"><a title="Priithon.py.crust.Crust.name
Priithon.py.crust.CrustFrame.name
Priithon.py.filling.Filling.name
Priithon.py.filling.FillingFrame.name
Priithon.py.filling.FillingText.name
Priithon.py.filling.FillingTree.name
Priithon.py.shell.Shell.name
Priithon.py.shell.ShellFacade.name
Priithon.py.shell.ShellFrame.name" class="py-name" href="#" onclick="return doclink('link-245', 'name', 'link-77');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L488"></a><tt class="py-lineno">488</tt>  <tt class="py-line">    <tt id="link-246" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-246', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L489"></a><tt class="py-lineno">489</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-247" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-247', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-248" class="py-name"><a title="Priithon.plt.interface.hold" class="py-name" href="#" onclick="return doclink('link-248', 'hold', 'link-104');">hold</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'yes'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L490"></a><tt class="py-lineno">490</tt>  <tt class="py-line">        <tt id="link-249" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-249', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt id="link-250" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-250', 'data', 'link-131');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-comment"># clear it out</tt> </tt>
<a name="L491"></a><tt class="py-lineno">491</tt>  <tt class="py-line">        <tt id="link-251" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-251', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt id="link-252" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-252', 'data', 'link-131');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-comment"># clear it out</tt> </tt>
<a name="L492"></a><tt class="py-lineno">492</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt id="link-253" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-253', 'i', 'link-166');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">lines</tt><tt class="py-op">:</tt> </tt>
<a name="L493"></a><tt class="py-lineno">493</tt>  <tt class="py-line">        <tt id="link-254" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-254', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-255" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-255', 'i', 'link-166');">i</a></tt><tt class="py-op">)</tt> </tt>
<a name="L494"></a><tt class="py-lineno">494</tt>  <tt class="py-line">    <tt id="link-256" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-256', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-257" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-257', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>                 </tt>
<a name="L495"></a><tt class="py-lineno">495</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-258" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-258', '_active', 'link-6');">_active</a></tt> </tt>
</div><a name="L496"></a><tt class="py-lineno">496</tt>  <tt class="py-line"> </tt>
<a name="markers"></a><div id="markers-def"><a name="L497"></a><tt class="py-lineno">497</tt> <a class="py-toggle" href="#" id="markers-toggle" onclick="return toggle('markers');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#markers">markers</a><tt class="py-op">(</tt><tt class="py-param">visible</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="markers-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="markers-expanded"><a name="L498"></a><tt class="py-lineno">498</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L499"></a><tt class="py-lineno">499</tt>  <tt class="py-line"> </tt>
<a name="L500"></a><tt class="py-lineno">500</tt>  <tt class="py-line"><tt class="py-comment">#-------------------------------------------------------------------#</tt> </tt>
<a name="L501"></a><tt class="py-lineno">501</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#--------------------------- image ---------------------------------#</tt> </tt>
<a name="L502"></a><tt class="py-lineno">502</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-------------------------------------------------------------------#</tt> </tt>
<a name="L503"></a><tt class="py-lineno">503</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="image"></a><div id="image-def"><a name="L504"></a><tt class="py-lineno">504</tt> <a class="py-toggle" href="#" id="image-toggle" onclick="return toggle('image');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#image">image</a><tt class="py-op">(</tt><tt class="py-param">img</tt><tt class="py-op">,</tt><tt class="py-param">x</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">colormap</tt> <tt class="py-op">=</tt> <tt class="py-string">'grey'</tt><tt class="py-op">,</tt><tt class="py-param">scale</tt><tt class="py-op">=</tt><tt class="py-string">'no'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="image-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="image-expanded"><a name="L505"></a><tt class="py-lineno">505</tt>  <tt class="py-line">    <tt class="py-docstring">"""Colormap should really default to the current colormap..."""</tt> </tt>
<a name="L506"></a><tt class="py-lineno">506</tt>  <tt class="py-line">    <tt class="py-comment"># check for hold here    </tt> </tt>
<a name="L507"></a><tt class="py-lineno">507</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-259" class="py-name"><a title="Priithon.plt.interface.validate_active" class="py-name" href="#" onclick="return doclink('link-259', 'validate_active', 'link-55');">validate_active</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L508"></a><tt class="py-lineno">508</tt>  <tt class="py-line">    <tt id="link-260" class="py-name" targets="Function Priithon.plt.interface.image()=Priithon.plt.interface-module.html#image"><a title="Priithon.plt.interface.image" class="py-name" href="#" onclick="return doclink('link-260', 'image', 'link-260');">image</a></tt> <tt class="py-op">=</tt> <tt id="link-261" class="py-name"><a title="Priithon.plt.wxplt" class="py-name" href="#" onclick="return doclink('link-261', 'wxplt', 'link-1');">wxplt</a></tt><tt class="py-op">.</tt><tt id="link-262" class="py-name" targets="Class Priithon.plt.plot_objects.image_object=Priithon.plt.plot_objects.image_object-class.html"><a title="Priithon.plt.plot_objects.image_object" class="py-name" href="#" onclick="return doclink('link-262', 'image_object', 'link-262');">image_object</a></tt><tt class="py-op">(</tt><tt class="py-name">img</tt><tt class="py-op">,</tt><tt id="link-263" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-263', 'x', 'link-134');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">,</tt><tt id="link-264" class="py-name" targets="Module Priithon.plt.colormap=Priithon.plt.colormap-module.html"><a title="Priithon.plt.colormap" class="py-name" href="#" onclick="return doclink('link-264', 'colormap', 'link-264');">colormap</a></tt><tt class="py-op">=</tt><tt id="link-265" class="py-name"><a title="Priithon.plt.colormap" class="py-name" href="#" onclick="return doclink('link-265', 'colormap', 'link-264');">colormap</a></tt><tt class="py-op">,</tt><tt class="py-name">scale</tt><tt class="py-op">=</tt><tt class="py-name">scale</tt><tt class="py-op">)</tt>     </tt>
<a name="L509"></a><tt class="py-lineno">509</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-266" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-266', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-267" class="py-name"><a title="Priithon.plt.interface.hold" class="py-name" href="#" onclick="return doclink('link-267', 'hold', 'link-104');">hold</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">'on'</tt><tt class="py-op">,</tt><tt class="py-string">'yes'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L510"></a><tt class="py-lineno">510</tt>  <tt class="py-line">        <tt id="link-268" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-268', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">line_list</tt><tt class="py-op">.</tt><tt id="link-269" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-269', 'data', 'link-131');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-comment"># clear it out</tt> </tt>
<a name="L511"></a><tt class="py-lineno">511</tt>  <tt class="py-line">        <tt id="link-270" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-270', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt id="link-271" class="py-name"><a title="Priithon.viewerRubberbandMode.viewerRubberbandMode.data" class="py-name" href="#" onclick="return doclink('link-271', 'data', 'link-131');">data</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-comment"># clear it out</tt> </tt>
<a name="L512"></a><tt class="py-lineno">512</tt>  <tt class="py-line">        <tt id="link-272" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-272', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-273" class="py-name"><a title="Priithon.plt.interface.image" class="py-name" href="#" onclick="return doclink('link-273', 'image', 'link-260');">image</a></tt><tt class="py-op">)</tt> </tt>
<a name="L513"></a><tt class="py-lineno">513</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L514"></a><tt class="py-lineno">514</tt>  <tt class="py-line">            <tt id="link-274" class="py-name" targets="Function Priithon.plt.interface.axis()=Priithon.plt.interface-module.html#axis,Method Priithon.plt.wxplt.plot_canvas.axis()=Priithon.plt.wxplt.plot_canvas-class.html#axis"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-274', 'axis', 'link-274');">axis</a></tt><tt class="py-op">(</tt><tt class="py-string">'equal'</tt><tt class="py-op">)</tt> </tt>
<a name="L515"></a><tt class="py-lineno">515</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">:</tt> </tt>
<a name="L516"></a><tt class="py-lineno">516</tt>  <tt class="py-line">            <tt class="py-comment"># cluge to handle case where ticks didn't exist when</tt> </tt>
<a name="L517"></a><tt class="py-lineno">517</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt class="py-comment"># calling axis()</tt> </tt>
<a name="L518"></a><tt class="py-lineno">518</tt>  <tt class="py-line"><tt class="py-comment"></tt>            <tt id="link-275" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-275', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">client</tt><tt class="py-op">.</tt><tt id="link-276" class="py-name" targets="Method Priithon.plt.wxplt.plot_canvas.layout_all()=Priithon.plt.wxplt.plot_canvas-class.html#layout_all"><a title="Priithon.plt.wxplt.plot_canvas.layout_all" class="py-name" href="#" onclick="return doclink('link-276', 'layout_all', 'link-276');">layout_all</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L519"></a><tt class="py-lineno">519</tt>  <tt class="py-line">            <tt id="link-277" class="py-name"><a title="Priithon.plt.interface.axis
Priithon.plt.wxplt.plot_canvas.axis" class="py-name" href="#" onclick="return doclink('link-277', 'axis', 'link-274');">axis</a></tt><tt class="py-op">(</tt><tt class="py-string">'equal'</tt><tt class="py-op">)</tt> </tt>
<a name="L520"></a><tt class="py-lineno">520</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L521"></a><tt class="py-lineno">521</tt>  <tt class="py-line">        <tt id="link-278" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-278', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt class="py-name">image_list</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-279" class="py-name"><a title="Priithon.plt.interface.image" class="py-name" href="#" onclick="return doclink('link-279', 'image', 'link-260');">image</a></tt><tt class="py-op">)</tt> </tt>
<a name="L522"></a><tt class="py-lineno">522</tt>  <tt class="py-line">        <tt id="link-280" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-280', '_active', 'link-6');">_active</a></tt><tt class="py-op">.</tt><tt id="link-281" class="py-name"><a title="Priithon.plt.wxplt.plot_canvas.update
Priithon.plt.wxplt.plot_frame.update" class="py-name" href="#" onclick="return doclink('link-281', 'update', 'link-63');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>                 </tt>
<a name="L523"></a><tt class="py-lineno">523</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-282" class="py-name"><a title="Priithon.plt.interface._active" class="py-name" href="#" onclick="return doclink('link-282', '_active', 'link-6');">_active</a></tt> </tt>
</div><a name="L524"></a><tt class="py-lineno">524</tt>  <tt class="py-line"> </tt>
<a name="imagesc"></a><div id="imagesc-def"><a name="L525"></a><tt class="py-lineno">525</tt> <a class="py-toggle" href="#" id="imagesc-toggle" onclick="return toggle('imagesc');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#imagesc">imagesc</a><tt class="py-op">(</tt><tt class="py-param">img</tt><tt class="py-op">,</tt><tt class="py-param">x</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">colormap</tt> <tt class="py-op">=</tt> <tt class="py-string">'grey'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="imagesc-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="imagesc-expanded"><a name="L526"></a><tt class="py-lineno">526</tt>  <tt class="py-line">    <tt id="link-283" class="py-name"><a title="Priithon.plt.interface.image" class="py-name" href="#" onclick="return doclink('link-283', 'image', 'link-260');">image</a></tt><tt class="py-op">(</tt><tt class="py-name">img</tt><tt class="py-op">,</tt><tt id="link-284" class="py-name"><a title="Priithon.viewer.x
Priithon.viewer2.x
Priithon.viewerCommon.x" class="py-name" href="#" onclick="return doclink('link-284', 'x', 'link-134');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">,</tt><tt id="link-285" class="py-name"><a title="Priithon.plt.colormap" class="py-name" href="#" onclick="return doclink('link-285', 'colormap', 'link-264');">colormap</a></tt><tt class="py-op">,</tt><tt class="py-name">scale</tt><tt class="py-op">=</tt><tt class="py-string">'yes'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L527"></a><tt class="py-lineno">527</tt>  <tt class="py-line">     </tt>
<a name="L528"></a><tt class="py-lineno">528</tt>  <tt class="py-line"><tt class="py-comment">#matlab equivalence</tt> </tt>
<a name="L529"></a><tt class="py-lineno">529</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-name">xlabel</tt> <tt class="py-op">=</tt> <tt id="link-286" class="py-name" targets="Function Priithon.plt.interface.xtitle()=Priithon.plt.interface-module.html#xtitle"><a title="Priithon.plt.interface.xtitle" class="py-name" href="#" onclick="return doclink('link-286', 'xtitle', 'link-286');">xtitle</a></tt> </tt>
<a name="L530"></a><tt class="py-lineno">530</tt>  <tt class="py-line"><tt class="py-name">ylabel</tt> <tt class="py-op">=</tt> <tt id="link-287" class="py-name" targets="Function Priithon.plt.interface.ytitle()=Priithon.plt.interface-module.html#ytitle"><a title="Priithon.plt.interface.ytitle" class="py-name" href="#" onclick="return doclink('link-287', 'ytitle', 'link-287');">ytitle</a></tt>      </tt>
<a name="L531"></a><tt class="py-lineno">531</tt>  <tt class="py-line"> </tt>
<a name="speed_test"></a><div id="speed_test-def"><a name="L532"></a><tt class="py-lineno">532</tt> <a class="py-toggle" href="#" id="speed_test-toggle" onclick="return toggle('speed_test');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="Priithon.plt.interface-module.html#speed_test">speed_test</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="speed_test-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="speed_test-expanded"><a name="L533"></a><tt class="py-lineno">533</tt>  <tt class="py-line">    <tt class="py-name">p</tt> <tt class="py-op">=</tt> <tt id="link-288" class="py-name"><a title="Priithon.plt.interface.plot" class="py-name" href="#" onclick="return doclink('link-288', 'plot', 'link-233');">plot</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'r:o'</tt><tt class="py-op">)</tt> </tt>
<a name="L534"></a><tt class="py-lineno">534</tt>  <tt class="py-line">    <tt class="py-name">s1</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">200</tt><tt class="py-op">,</tt><tt class="py-number">200</tt><tt class="py-op">)</tt> </tt>
<a name="L535"></a><tt class="py-lineno">535</tt>  <tt class="py-line">    <tt class="py-name">s2</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-number">400</tt><tt class="py-op">,</tt><tt class="py-number">400</tt><tt class="py-op">)</tt> </tt>
<a name="L536"></a><tt class="py-lineno">536</tt>  <tt class="py-line">    <tt class="py-name">p</tt><tt class="py-op">.</tt><tt class="py-name">SetSize</tt><tt class="py-op">(</tt><tt class="py-name">s1</tt><tt class="py-op">)</tt> </tt>
<a name="L537"></a><tt class="py-lineno">537</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt id="link-289" class="py-name"><a title="Priithon.viewer.i
Priithon.viewer2.i
Priithon.viewerCommon.i" class="py-name" href="#" onclick="return doclink('link-289', 'i', 'link-166');">i</a></tt> <tt class="py-keyword">in</tt> <tt id="link-290" class="py-name"><a title="Priithon.plt.plot_objects.axis_object.range" class="py-name" href="#" onclick="return doclink('link-290', 'range', 'link-167');">range</a></tt><tt class="py-op">(</tt><tt class="py-number">20</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L538"></a><tt class="py-lineno">538</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">p</tt><tt class="py-op">.</tt><tt class="py-name">GetSizeTuple</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">200</tt><tt class="py-op">:</tt>  </tt>
<a name="L539"></a><tt class="py-lineno">539</tt>  <tt class="py-line">            <tt class="py-name">p</tt><tt class="py-op">.</tt><tt class="py-name">SetSize</tt><tt class="py-op">(</tt><tt class="py-name">s2</tt><tt class="py-op">)</tt> </tt>
<a name="L540"></a><tt class="py-lineno">540</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt>  </tt>
<a name="L541"></a><tt class="py-lineno">541</tt>  <tt class="py-line">            <tt class="py-name">p</tt><tt class="py-op">.</tt><tt class="py-name">SetSize</tt><tt class="py-op">(</tt><tt class="py-name">s1</tt><tt class="py-op">)</tt> </tt>
</div><a name="L542"></a><tt class="py-lineno">542</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Priithon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/priithon">Priithon</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Nov 22 14:59:52 2010
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
